﻿// ----------------------------------------------------------------------
// <author name="Moses Kehengu"/>
// <copyright file="ReportingEngineEventArgs.cs" company="Futures Group International">
//     Copyright statement. All right reserved
// </copyright>
//
// ------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Reporting
{
    public class ReportingEngineEventArgs : EventArgs
    {
        #region Class Variables
        private string logText;
        private EventType type;
        #endregion

        #region Class Enumeration
        public enum EventType
        {
            LOG_EVENT = 0,
            OPERATION_COMPLETED = 1
        }
        #endregion

        #region Constructors
        public ReportingEngineEventArgs(string log)
        {
            this.logText = log;
            this.type = EventType.LOG_EVENT;
        }

        public ReportingEngineEventArgs(string message, EventType eventType)
        {
            this.logText = message;
            this.type = EventType.OPERATION_COMPLETED;
        }
        #endregion

        #region Public Properties
        public string LogText
        {
            get
            {
                return this.logText;
            }
        }

        public EventType Type
        {
            get
            {
                return this.type;
            }
        }
        #endregion
    }
}
